Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove conversions from String<>ScSymbol/ScVal #329

Merged
merged 17 commits into from
Dec 1, 2023

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Dec 1, 2023

What

Remove conversions from String<>ScSymbol/ScVal.

Why

The conversions are not intuitive. ScVal also has a String variant, and so the fact that String types convert to ScSymbol/ScVal::Symbol can be surprising. Since we have multiple types that are clearly strings in some form, I think we should require explicit conversions in code that needs to convert.

If needed we can follow up with some help functions such as ScVal::symbol_from_str and ScVal::string_from_str.

Merging

Intended to be merged to main after:

@leighmcculloch leighmcculloch changed the base branch from stringm-escape to main December 1, 2023 10:22
@leighmcculloch leighmcculloch marked this pull request as ready for review December 1, 2023 10:22
@leighmcculloch leighmcculloch added this pull request to the merge queue Dec 1, 2023
@leighmcculloch leighmcculloch removed this pull request from the merge queue due to a manual request Dec 1, 2023
@leighmcculloch leighmcculloch added this pull request to the merge queue Dec 1, 2023
Merged via the queue into main with commit 80faa4e Dec 1, 2023
7 checks passed
@leighmcculloch leighmcculloch deleted the remove-ambig-convs branch December 1, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants